﻿using Admin2024.Domain.Entity.System;
using Admin2024.Domain.ObjValue;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin2024.Domain.IDomainService.System.IPermissionService
{
    public interface IPermissionManagementService
    {
        /// <summary>
        /// 创建权限
        /// </summary>
        /// <param name="appPermission"></param>
        /// <returns></returns>
        Task<DomainResult<AppPermission>> CreatePermission(AppPermission appPermission);

        /// <summary>
        /// 删除权限
        /// </summary>
        /// <param name="PerId"></param>
        /// <returns></returns>
        Task<DomainResult<AppPermission>> DeletePermission(Guid PerId);

        //获取所有权限(分页)
        Task<DomainResult<List<AppPermission>>> GetPermissionWithPagination(int page, int pageSize);

        Task<DomainResult<AppPermission>> GetAppPermissionById(Guid id);

        Task<DomainResult<AppPermission>> UpdatePermissionProfile(Guid Id, AppPermission entity);
    }
}
